#include "c_skip_list.h"
#include <stdio.h>

int main()
{
    SkipList* sp = ConstructSkipList();

    for(int i=0;i<100;++i)
    {
        Add(sp,i);
    }

    if(Search(sp,5))
    {
        printf("search 5 exist\n");
    }

    if(Erase(sp,5))
    {
        printf("erase 5 success\n");
    }

    if(!Search(sp,5))
    {
        printf("search 5 not exist\n");
    }

    if(!Search(sp,110))
    {
        printf("search 110 not exist\n");
    }

    printf("skip list depth: %u\n",GetSkipListDepth(sp));
    printf("skip list size: %u\n",GetSkipListSize(sp));

    DestructSkipList(sp);
    return 0;
}